<!DOCTYPE html>
<html lang=en>
<head>
    <!-- so meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="HandheldFriendly" content="True">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=5" />
    <meta name="description" content="Fiddler入门学习简介 位于客户端和服务器之间的一个代理    使用场景：接口调试和接口测试，线上调试，mock调试，弱网调试  安装及配置 安装证书     配置解密https以及忽略不安全证书    允许远程IP访问   这样就可以开始抓包了 配置手机抓包以华为手机为例，确保手机和电脑在同一局域网内  首先查询电脑的局域网IPV4地址 修改属性    用手机浏览器打开上面配置好的代理地址，">
<meta property="og:type" content="article">
<meta property="og:title" content="Fiddler入门学习">
<meta property="og:url" content="https://cheung0-bit.github.io/8d02adacbb72/index.html">
<meta property="og:site_name" content="Bruce Zhang&#39;s Blogs">
<meta property="og:description" content="Fiddler入门学习简介 位于客户端和服务器之间的一个代理    使用场景：接口调试和接口测试，线上调试，mock调试，弱网调试  安装及配置 安装证书     配置解密https以及忽略不安全证书    允许远程IP访问   这样就可以开始抓包了 配置手机抓包以华为手机为例，确保手机和电脑在同一局域网内  首先查询电脑的局域网IPV4地址 修改属性    用手机浏览器打开上面配置好的代理地址，">
<meta property="og:locale" content="en_US">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/d2312782495a8bb883fd47d385df34c4.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/8d16c9f8977ad237b0ea7c298a96a0a8.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/462793ac9d0a825dbe29aba6b61be38e.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/2093546d71b31393602f16e260f08c7a.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/dd65d81b1e369e2fbfbd08c2294147a3.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/1f144917c06bdd57f26faf528027e2fa.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/e05e8d98288212885c12182ca6b9f159.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/f3331e2f496e4062caea1db3596035a4.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/b2f8ce5dc19b066a8a0bd2305bdcf7ec.png">
<meta property="og:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/796a5abe2f1293644f03006235e5a664.png">
<meta property="article:published_time" content="2021-12-24T13:17:03.000Z">
<meta property="article:modified_time" content="2022-11-25T07:01:10.030Z">
<meta property="article:author" content="张林">
<meta property="article:tag" content="Fiddler">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://0-bit.oss-cn-beijing.aliyuncs.com/d2312782495a8bb883fd47d385df34c4.png">
    
    
      
        
          <link rel="shortcut icon" href="/images/favicon.ico">
        
      
      
        
          <link rel="icon" type="image/png" href="/images/favicon-192x192.png" sizes="192x192">
        
      
      
        
          <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon.png">
        
      
    
    <!-- title -->
    <title>Fiddler入门学习</title>
    <!-- styles -->
    
<link rel="stylesheet" href="/css/style.css">

    <!-- persian styles -->
    
    <!-- rss -->
    
    
      <link rel="alternate" href="/atom.xml" title="Bruce Zhang&#39;s Blogs" type="application/atom+xml" />
    
	<!-- mathjax -->
	
<meta name="generator" content="Hexo 7.0.0"></head>

<body class="max-width mx-auto px3 ltr">
    
      <div id="header-post">
  <a id="menu-icon" href="#" aria-label="Menu"><i class="fas fa-bars fa-lg"></i></a>
  <a id="menu-icon-tablet" href="#" aria-label="Menu"><i class="fas fa-bars fa-lg"></i></a>
  <a id="top-icon-tablet" href="#" aria-label="Top" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');" style="display:none;"><i class="fas fa-chevron-up fa-lg"></i></a>
  <span id="menu">
    <span id="nav">
      <ul>
        <!--
       --><li><a href="/">Home</a></li><!--
     --><!--
       --><li><a href="/about/">About</a></li><!--
     --><!--
       --><li><a href="/archives/">Articles</a></li><!--
     --><!--
       --><li><a href="/categories/">Category</a></li><!--
     --><!--
       --><li><a href="/search/">Search</a></li><!--
     -->
      </ul>
    </span>
    <br/>
    <span id="actions">
      <ul>
        
        <li><a class="icon" aria-label="Previous post" href="/f6acfb74408f/"><i class="fas fa-chevron-left" aria-hidden="true" onmouseover="$('#i-prev').toggle();" onmouseout="$('#i-prev').toggle();"></i></a></li>
        
        
        <li><a class="icon" aria-label="Next post" href="/8a037252eb03/"><i class="fas fa-chevron-right" aria-hidden="true" onmouseover="$('#i-next').toggle();" onmouseout="$('#i-next').toggle();"></i></a></li>
        
        <li><a class="icon" aria-label="Back to top" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up" aria-hidden="true" onmouseover="$('#i-top').toggle();" onmouseout="$('#i-top').toggle();"></i></a></li>
        <li><a class="icon" aria-label="Share post" href="#"><i class="fas fa-share-alt" aria-hidden="true" onmouseover="$('#i-share').toggle();" onmouseout="$('#i-share').toggle();" onclick="$('#share').toggle();return false;"></i></a></li>
      </ul>
      <span id="i-prev" class="info" style="display:none;">Previous post</span>
      <span id="i-next" class="info" style="display:none;">Next post</span>
      <span id="i-top" class="info" style="display:none;">Back to top</span>
      <span id="i-share" class="info" style="display:none;">Share post</span>
    </span>
    <br/>
    <div id="share" style="display: none">
      <ul>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.facebook.com/sharer.php?u=https://cheung0-bit.github.io/8d02adacbb72/"><i class="fab fa-facebook " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://twitter.com/share?url=https://cheung0-bit.github.io/8d02adacbb72/&text=Fiddler入门学习"><i class="fab fa-twitter " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.linkedin.com/shareArticle?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-linkedin " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://pinterest.com/pin/create/bookmarklet/?url=https://cheung0-bit.github.io/8d02adacbb72/&is_video=false&description=Fiddler入门学习"><i class="fab fa-pinterest " aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=Fiddler入门学习&body=Check out this article: https://cheung0-bit.github.io/8d02adacbb72/"><i class="fas fa-envelope " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://getpocket.com/save?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-get-pocket " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://reddit.com/submit?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-reddit " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.stumbleupon.com/submit?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-stumbleupon " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://digg.com/submit?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-digg " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.tumblr.com/share/link?url=https://cheung0-bit.github.io/8d02adacbb72/&name=Fiddler入门学习&description="><i class="fab fa-tumblr " aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://news.ycombinator.com/submitlink?u=https://cheung0-bit.github.io/8d02adacbb72/&t=Fiddler入门学习"><i class="fab fa-hacker-news " aria-hidden="true"></i></a></li>
</ul>

    </div>
    <div id="toc">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#Fiddler%E5%85%A5%E9%97%A8%E5%AD%A6%E4%B9%A0"><span class="toc-number">1.</span> <span class="toc-text">Fiddler入门学习</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%AE%80%E4%BB%8B"><span class="toc-number">1.1.</span> <span class="toc-text">简介</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE"><span class="toc-number">1.2.</span> <span class="toc-text">安装及配置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E6%89%8B%E6%9C%BA%E6%8A%93%E5%8C%85"><span class="toc-number">1.3.</span> <span class="toc-text">配置手机抓包</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8%E6%8A%80%E5%B7%A7"><span class="toc-number">1.4.</span> <span class="toc-text">使用技巧</span></a></li></ol></li></ol>
    </div>
  </span>
</div>

    
    <div class="content index py4">
        
        <article class="post" itemscope itemtype="http://schema.org/BlogPosting">
  <header>
    
    <h1 class="posttitle" itemprop="name headline">
        Fiddler入门学习
    </h1>



    <div class="meta">
      <span class="author" itemprop="author" itemscope itemtype="http://schema.org/Person">
        <span itemprop="name">张林</span>
      </span>
      
    <div class="postdate">
      
        <time datetime="2021-12-24T13:17:03.000Z" itemprop="datePublished">2021-12-24</time>
        
        (Updated: <time datetime="2022-11-25T07:01:10.030Z" itemprop="dateModified">2022-11-25</time>)
        
      
    </div>


      
    <div class="article-category">
        <i class="fas fa-archive"></i>
        <a class="category-link" href="/categories/%E5%BC%80%E5%8F%91%E5%AE%9E%E8%B7%B5/">开发实践</a>
    </div>


      
    <div class="article-tag">
        <i class="fas fa-tag"></i>
        <a class="tag-link-link" href="/tags/Fiddler/" rel="tag">Fiddler</a>
    </div>


    </div>
  </header>
  

  <div class="content" itemprop="articleBody">
    <h2 id="Fiddler入门学习"><a href="#Fiddler入门学习" class="headerlink" title="Fiddler入门学习"></a>Fiddler入门学习</h2><h3 id="简介"><a href="#简介" class="headerlink" title="简介"></a>简介</h3><ol>
<li>位于客户端和服务器之间的一个代理</li>
</ol>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/d2312782495a8bb883fd47d385df34c4.png" alt="image-20211223180226792"></p>
<ol start="2">
<li>使用场景：接口调试和接口测试，线上调试，mock调试，弱网调试</li>
</ol>
<h3 id="安装及配置"><a href="#安装及配置" class="headerlink" title="安装及配置"></a>安装及配置</h3><ul>
<li>安装证书</li>
</ul>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/8d16c9f8977ad237b0ea7c298a96a0a8.png" alt="image-20211224105302069"></p>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/462793ac9d0a825dbe29aba6b61be38e.png"></p>
<ul>
<li>配置解密https以及忽略不安全证书</li>
</ul>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/2093546d71b31393602f16e260f08c7a.png"></p>
<ul>
<li>允许远程IP访问</li>
</ul>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/dd65d81b1e369e2fbfbd08c2294147a3.png"></p>
<p>这样就可以开始抓包了</p>
<h3 id="配置手机抓包"><a href="#配置手机抓包" class="headerlink" title="配置手机抓包"></a>配置手机抓包</h3><p>以华为手机为例，确保手机和电脑在同一局域网内</p>
<ul>
<li>首先查询电脑的局域网IPV4地址</li>
<li>修改属性<img src="https://0-bit.oss-cn-beijing.aliyuncs.com/1f144917c06bdd57f26faf528027e2fa.png" alt="image-20211223200756159"></li>
</ul>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/e05e8d98288212885c12182ca6b9f159.png" alt="image-20211223200917298"></p>
<ul>
<li>用手机浏览器打开上面配置好的代理地址，例如我的：<code>192.168.137.1:8888</code></li>
<li>给手机安装证书<img src="https://0-bit.oss-cn-beijing.aliyuncs.com/f3331e2f496e4062caea1db3596035a4.png" alt="image-20211223201115439"></li>
<li>直接在下载中点击安装</li>
</ul>
<p>完成以上步骤，在Fiddler中就可以给手机抓包了，但切记，<strong>完事后将手机代理关闭，否则在Fiddler关闭后，手机无法访问浏览器</strong></p>
<h3 id="使用技巧"><a href="#使用技巧" class="headerlink" title="使用技巧"></a>使用技巧</h3><ul>
<li>选择关闭通道包和304s 这些是无用的包<img src="https://0-bit.oss-cn-beijing.aliyuncs.com/b2f8ce5dc19b066a8a0bd2305bdcf7ec.png" alt="image-20211223201639760"></li>
<li>过滤</li>
</ul>
<p><img src="https://0-bit.oss-cn-beijing.aliyuncs.com/796a5abe2f1293644f03006235e5a664.png" alt="image-20211224104814615"></p>
<p>这样Fiddler就只会抓这个域名下的包</p>
<p>还可以通过更多的配置只抓取API接口或是断点调试改包等</p>

  </div>
</article>


    <div class="blog-post-comments">
        <div id="utterances_thread">
            <noscript>Please enable JavaScript to view the comments.</noscript>
        </div>
    </div>


        
          <div id="footer-post-container">
  <div id="footer-post">

    <div id="nav-footer" style="display: none">
      <ul>
         
          <li><a href="/">Home</a></li>
         
          <li><a href="/about/">About</a></li>
         
          <li><a href="/archives/">Articles</a></li>
         
          <li><a href="/categories/">Category</a></li>
         
          <li><a href="/search/">Search</a></li>
        
      </ul>
    </div>

    <div id="toc-footer" style="display: none">
      <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#Fiddler%E5%85%A5%E9%97%A8%E5%AD%A6%E4%B9%A0"><span class="toc-number">1.</span> <span class="toc-text">Fiddler入门学习</span></a><ol class="toc-child"><li class="toc-item toc-level-3"><a class="toc-link" href="#%E7%AE%80%E4%BB%8B"><span class="toc-number">1.1.</span> <span class="toc-text">简介</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E5%AE%89%E8%A3%85%E5%8F%8A%E9%85%8D%E7%BD%AE"><span class="toc-number">1.2.</span> <span class="toc-text">安装及配置</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E9%85%8D%E7%BD%AE%E6%89%8B%E6%9C%BA%E6%8A%93%E5%8C%85"><span class="toc-number">1.3.</span> <span class="toc-text">配置手机抓包</span></a></li><li class="toc-item toc-level-3"><a class="toc-link" href="#%E4%BD%BF%E7%94%A8%E6%8A%80%E5%B7%A7"><span class="toc-number">1.4.</span> <span class="toc-text">使用技巧</span></a></li></ol></li></ol>
    </div>

    <div id="share-footer" style="display: none">
      <ul>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.facebook.com/sharer.php?u=https://cheung0-bit.github.io/8d02adacbb72/"><i class="fab fa-facebook fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://twitter.com/share?url=https://cheung0-bit.github.io/8d02adacbb72/&text=Fiddler入门学习"><i class="fab fa-twitter fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.linkedin.com/shareArticle?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-linkedin fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://pinterest.com/pin/create/bookmarklet/?url=https://cheung0-bit.github.io/8d02adacbb72/&is_video=false&description=Fiddler入门学习"><i class="fab fa-pinterest fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" href="mailto:?subject=Fiddler入门学习&body=Check out this article: https://cheung0-bit.github.io/8d02adacbb72/"><i class="fas fa-envelope fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://getpocket.com/save?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-get-pocket fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://reddit.com/submit?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-reddit fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.stumbleupon.com/submit?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-stumbleupon fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://digg.com/submit?url=https://cheung0-bit.github.io/8d02adacbb72/&title=Fiddler入门学习"><i class="fab fa-digg fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="http://www.tumblr.com/share/link?url=https://cheung0-bit.github.io/8d02adacbb72/&name=Fiddler入门学习&description="><i class="fab fa-tumblr fa-lg" aria-hidden="true"></i></a></li>
  <li><a class="icon" target="_blank" rel="noopener" href="https://news.ycombinator.com/submitlink?u=https://cheung0-bit.github.io/8d02adacbb72/&t=Fiddler入门学习"><i class="fab fa-hacker-news fa-lg" aria-hidden="true"></i></a></li>
</ul>

    </div>

    <div id="actions-footer">
        <a id="menu" class="icon" href="#" onclick="$('#nav-footer').toggle();return false;"><i class="fas fa-bars fa-lg" aria-hidden="true"></i> Menu</a>
        <a id="toc" class="icon" href="#" onclick="$('#toc-footer').toggle();return false;"><i class="fas fa-list fa-lg" aria-hidden="true"></i> TOC</a>
        <a id="share" class="icon" href="#" onclick="$('#share-footer').toggle();return false;"><i class="fas fa-share-alt fa-lg" aria-hidden="true"></i> Share</a>
        <a id="top" style="display:none" class="icon" href="#" onclick="$('html, body').animate({ scrollTop: 0 }, 'fast');"><i class="fas fa-chevron-up fa-lg" aria-hidden="true"></i> Top</a>
    </div>

  </div>
</div>

        
        <footer id="footer">
  <div class="footer-left">
    Copyright &copy;
      
        
          2022-2024
            <a target="_blank" rel="noopener" href="https://beian.miit.gov.cn/">
              苏ICP备2022044873号
            </a>
  </div>
  <div class="footer-right">
    <nav>
      <ul>
        
          <!--
       -->
          <li><a href="/">
              Home
            </a></li>
          <!--
     -->
          
          <!--
       -->
          <li><a href="/about/">
              About
            </a></li>
          <!--
     -->
          
          <!--
       -->
          <li><a href="/archives/">
              Articles
            </a></li>
          <!--
     -->
          
          <!--
       -->
          <li><a href="/categories/">
              Category
            </a></li>
          <!--
     -->
          
          <!--
       -->
          <li><a href="/search/">
              Search
            </a></li>
          <!--
     -->
          
      </ul>
    </nav>
  </div>
</footer>
    </div>
    <!-- styles -->


 
  <link
    rel="preload"
    href="/lib/font-awesome/css/all.min.css"
    as="style"
    onload="this.onload=null;this.rel='stylesheet'"
  />
  <noscript
    ><link
      rel="stylesheet"
      href="/lib/font-awesome/css/all.min.css"
  /></noscript>



    <!-- jquery -->
 
  
<script src="/lib/jquery/jquery.min.js"></script>





<!-- clipboard -->

   
    
<script src="/lib/clipboard/clipboard.min.js"></script>

  
  <script type="text/javascript">
  $(function() {
    // copy-btn HTML
    var btn = "<span class=\"btn-copy tooltipped tooltipped-sw\" aria-label=\"Copy to clipboard!\">";
    btn += '<i class="far fa-clone"></i>';
    btn += '</span>'; 
    // mount it!
    $(".highlight table").before(btn);
    var clip = new ClipboardJS('.btn-copy', {
      text: function(trigger) {
        return Array.from(trigger.nextElementSibling.querySelectorAll('.code')).reduce((str,it)=>str+it.innerText+'\n','')
      }
    });
    clip.on('success', function(e) {
      e.trigger.setAttribute('aria-label', "Copied!");
      e.clearSelection();
    })
  })
  </script>


<script src="/js/main.js"></script>

<!-- search -->

<!-- Google Analytics -->

<!-- Baidu Analytics -->

  <script type="text/javascript">
        var _hmt = _hmt || [];
        (function() {
          var hm = document.createElement("script");
          hm.src = "https://hm.baidu.com/hm.js?4484a4a33014b59670c470a6e15a66db";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
        })();
        </script>

<!-- Cloudflare Analytics -->

<!-- Umami Analytics -->

<!-- Disqus Comments -->

<!-- utterances Comments -->

    <script type="text/javascript">
      var utterances_repo = 'Cheung0-bit/blog-package';
      var utterances_issue_term = 'title';
      var utterances_label = 'Comment';
      var utterances_theme = 'github-dark';

      (function(){
          var script = document.createElement('script');

          script.src = 'https://utteranc.es/client.js';
          script.setAttribute('repo', utterances_repo);
          script.setAttribute('issue-term', 'pathname');
          script.setAttribute('label', utterances_label);
          script.setAttribute('theme', utterances_theme);
          script.setAttribute('crossorigin', 'anonymous');
          script.async = true;
          (document.getElementById('utterances_thread')).appendChild(script);
      }());
  </script>

</body>
</html>
